import PropTypes from "prop-types";

const TitleBlk = ({ title, children }) => {
  const titleStyle = {
    padding: "12px 12px 8px",
    color: "#697b8c",
    fontSize: "14px",
  };

  return (
    <div style={{ marginBottom: "12px" }}>
      <div style={titleStyle}>{title}</div>
      <div>{children}</div>
    </div>
  );
};

TitleBlk.propTypes = {
  title: PropTypes.string
};

export default TitleBlk;